const obj = {
  bar: 'value1',
  foo: 'value2'
}
console.log(Object.values(obj))
console.log(Object.entries(obj))
for([key,value] of Object.entries(obj)) {
  console.log(key,value)
}
//Object.getOwnPropertyDescriptor()
//String.prototype.padStart()
//String.prototype.padEnd()
const person = {
  name: 'xiaogang',
  age: 12
}
console.log(`${person.name.padEnd(16,'-')}|${person.age.toString().padStart(16,'-')}`)